From 40adad1f67a4efde3588367b2a8985b1607c8c8d Mon Sep 17 00:00:00 2001 From: whitequark Date: Sat, 20 Aug 2016 17:41:37 +0000 Subject: [PATCH] doc: fix platform-specific definitions section Right now the section seems to imply that using cfg(target_pointer_width = "32") is an acceptable way to detect whether the crate is built for x86. --- src/doc/specifying-dependencies.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doc/specifying-dependencies.md b/src/doc/specifying-dependencies.md index f78d667ee..15873c310 100644 --- a/src/doc/specifying-dependencies.md +++ b/src/doc/specifying-dependencies.md @@ -307,10 +307,10 @@ winhttp = "0.4.0" [target.'cfg(unix)'.dependencies] openssl = "1.0.1" -[target.'cfg(target_pointer_width = "32")'.dependencies] +[target.'cfg(target_arch = "x86)'.dependencies] native = { path = "native/i686" } -[target.'cfg(target_pointer_width = "64")'.dependencies] +[target.'cfg(target_arch = "x86_64")'.dependencies] native = { path = "native/x86_64" } ``` -- 2.30.2